// import goods from './cadmin/goods'
import log from './cadmin/log'
import notice from './cadmin/notice'
// import org from './cadmin/org'
// import seal from './cadmin/seal'
import sing from './cadmin/sing'
import report from './province/report'
// import authority from './cadmin/authority'

export default {
  path: '/',
  component: () => import(/* webpackChunkName: "credit-app" */ '@/credit/views/city/Layout.vue'),
  meta: {
    root: true,
    title: '农业大数据信用服务后台',
    job: ['org_credit_super'],
    org: ['org_credit'],
    regionLevel: 2, // 行政级别限制
  },
  children: [
    {
      path: '',
      redirect: 'credit',
    },
    {
      path: 'credit',
      component: { render: h => h('router-view') },
      meta: { title: '信用服务', icon: 'fa fa-fw fa-home', hidden: true },
      children: [
        {
          path: '',
          redirect: 'notice',
        },
        {
          path: 'notice',
          component: () =>
            import(/* webpackChunkName: "credit-cadmin-notice" */ '@/components/AliveView.vue'),
          meta: { title: '通知公告', icon: 'fa fa-fw fa-bullhorn' },
          children: notice,
        },
        {
          path: 'sing',
          component: () =>
            import(/* webpackChunkName: "credit-cadmin-sign" */ '@/components/AliveView.vue'),
          meta: { title: '移动签到', icon: 'fa fa-fw fa-map-marker' },
          children: sing,
        },
        {
          path: 'log',
          component: () =>
            import(/* webpackChunkName: "credit-cadmin-log" */ '@/components/AliveView.vue'),
          meta: { title: '日志管理', icon: 'fa fa-fw fa-bookmark' },
          children: log,
        },
        {
          path: 'authority',
          component: () =>
            import(
              /* webpackChunkName: "credit-cadmin-authority" */ '@/credit/views/cadmin/authority/Authority.vue'
            ),
          meta: { title: '权限管理', icon: 'fa fa-users' },
          // children: authority
        },
        // {
        //   path: 'goods',
        //   component: () =>
        //     import(/* webpackChunkName: "credit-goods" */ '@/components/AliveView.vue'),
        //   meta: { title: '产品管理', icon: 'fa fa-fw fa-file-archive-o' },
        //   children: goods,
        // },
        // {
        //   path: 'org',
        //   component: () =>
        //     import(/* webpackChunkName: "cadmin-org" */ '@/components/AliveView.vue'),
        //   meta: { title: '机构管理', icon: 'fa fa-fw fa-address-card-o' },
        //   children: org,
        // },
        // {
        //   path: 'file',
        //   component: () =>
        //     import(/* webpackChunkName: "credit-data" */ '@/components/ToBeDetermined.vue'),
        //   meta: { title: '文档管理', icon: 'fa fa-fw fa-file-archive-o ' },
        // },
        {
          path: 'report',
          component: () =>
            import(/* webpackChunkName: "credit-report" */ '@/components/AliveView.vue'),
          meta: { title: '报表管理', icon: 'fa fa-fw fa-file-text-o' },
          children: report,
        },
        // {
        //   path: 'message',
        //   component: () =>
        //     import(/* webpackChunkName: "credit-data" */ '@/components/ToBeDetermined.vue'),
        //   meta: { title: '短信管理', icon: 'fa fa-fw fa-envelope-o ' },
        // },
        // {
        //   path: 'datas',
        //   component: () =>
        //     import(/* webpackChunkName: "credit-data" */ '@/components/ToBeDetermined.vue'),
        //   meta: { title: '数据管理', icon: 'fa fa-fw fa-bar-chart' },
        // },
        // {
        //   path: 'seal',
        //   component: () =>
        //     import(/* webpackChunkName: "cadmin-org" */ '@/components/AliveView.vue'),
        //   meta: { title: '公章管理', icon: 'fa fa-fw fa-creative-commons' },
        //   children: seal,
        // },
      ],
    },
  ],
}
